﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Descripción breve de Area
/// </summary>
public class Area
{
    Conexion cn = new Conexion();

	public Area()
	{
	}

    public DataTable listarAreas()
    {
        SqlDataAdapter da = new SqlDataAdapter("spr_area_listar", cn.getCn());
        da.SelectCommand.CommandType = CommandType.StoredProcedure;
        DataTable tabla = new DataTable();
        da.Fill(tabla);
        return tabla;
    }
}